package cn.dnui_xcz826.dnuifood_16110100826.controller;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import cn.dnui_xcz826.dnuifood_16110100826.R;
import cn.dnui_xcz826.dnuifood_16110100826.bean.ResultBean;
import cn.dnui_xcz826.dnuifood_16110100826.listener.onRetrofitListener;
import cn.dnui_xcz826.dnuifood_16110100826.model.UserModel;

// implements View.OnClickListener,onRetrofitListener<ResultBean>
public class SettingActivity extends AppCompatActivity{
    private TextView s_username, s_phone;
    private Button s_passchange, s_imagehange;


    private void initViews() {
        s_username = findViewById(R.id.username);
        s_passchange = findViewById(R.id.s_passchange);
        s_imagehange = findViewById(R.id.s_imagehange);
        s_phone = findViewById(R.id.mobilenum);
    }


    private void initEvents() {
        s_imagehange.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(SettingActivity.this,UserImageActivity.class);
                startActivity(intent);
            }
        });
    }


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);
        initViews();
        initEvents();

    }

}
